from rest_framework import serializers

from . import models  # 直接在当前文件夹下导入models


class BannerSerializer(serializers.ModelSerializer):
    class Meta:
        model = models.Banner
        fields = ['title', 'image', 'link']

